package com.qf.feign.api;


import com.qf.vo.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user", path = "/user")
public interface UserService {

    @GetMapping("/getUserByName")
    public Customer getUserByName(@RequestParam("username") String username);

    @PostMapping("/addUser")
    public Boolean addUser(Customer consumer);

    @GetMapping("/getUserByOauthId")
    Customer getUserByOauthId(@RequestParam("uuid") String uuid);
}
